package org.jeecg.modules.factor.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.api.entity.CyEmissionFactorData;
import org.jeecg.modules.factor.mapper.CyEmissionFactorDataMapper;
import org.jeecg.modules.factor.service.ICyEmissionFactorDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 碳排因子数据详情
 * @Author: jeecg-boot
 * @Date:   2024-11-01
 * @Version: V1.0
 */
@Service
public class CyEmissionFactorDataServiceImpl extends ServiceImpl<CyEmissionFactorDataMapper, CyEmissionFactorData> implements ICyEmissionFactorDataService {

    @Autowired
    private CyEmissionFactorDataMapper cyEmissionFactorDataMapper;

    @Override
    public CyEmissionFactorData SelectByEmissionFactorId(String EmissionFactorId) {
        CyEmissionFactorData cyEmissionFactorData = cyEmissionFactorDataMapper.SelectByEmissionFactorId(EmissionFactorId);

        return cyEmissionFactorData;
    }

    @Override
    public void updateByEmissionFactorId(CyEmissionFactorData cyEmissionFactorData) {
        cyEmissionFactorDataMapper.updateByEmissionFactorId(cyEmissionFactorData);
    }

    @Override
    public CyEmissionFactorData SelectByDenominator(String denominatorUnit, String emissionFactorId) {

        CyEmissionFactorData cyEmissionFactorData = cyEmissionFactorDataMapper.SelectByDenominator(denominatorUnit, emissionFactorId);

        return cyEmissionFactorData;
    }
}
